package com.hope.onlinestudy.fragment.userfavorites

import android.support.v7.widget.GridLayoutManager
import com.hope.onlinestudy.R
import com.hope.onlinestudy.adapter.AddLessonAdapter
import com.hope.onlinestudy.model.UserFavorites
import com.hope.onlinestudy.mvp.MVPBaseFragment
import kotlinx.android.synthetic.main.layout_recyclerview.*

/**
 * MVPPlugin
 * 邮箱 784787081@qq.com
 */
class UserFavoritesFragment :
    MVPBaseFragment<UserFavoritesContract.View, UserFavoritesPresenter>(),
    UserFavoritesContract.View {

    private val lessonAdapter: AddLessonAdapter<UserFavorites> by lazy { AddLessonAdapter<UserFavorites>(activity!!) }

    override fun initView(): Int {
        return R.layout.layout_recyclerview
    }

    override fun bindData() {
        rcvList.layoutManager = GridLayoutManager(activity,2)
        rcvList.adapter = lessonAdapter
    }

    override fun lazyLoad() {
    }
}